package cn.joyfulmedia.common.result;

/**
 * Created by darren.dai on 30/08/2017.
 */
public enum ApiResultCodeEnum implements ResultCodeInterface {
    SUCCESS(0, "操作成功"),
    LOGIN_ERROR(1100001, "登录异常"),
    EXAM_LEVEL_NOT_EXIST(1100002, "考试等级不存在"),
    EXAM_CLASS_NOTEXIST(1100003, "考试类别不存在"),
    WXPAY_PREPAY_ID_ERROR(11000004, "获取微信prepayid失败")
    ;


    private int resultCode;
    private String message;

    ApiResultCodeEnum(int resultCode, String message) {
        this.resultCode = resultCode;
        this.message = message;
    }

    @Override
    public int getResultCode() {
        return resultCode;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
